﻿@{
    ViewData["Title"] = "登录";
}
<h2>登录系统</h2>
<div class="row">
    <div class="col-md-8">
        <section>
            <form asp-controller="Account" asp-action="Login" method="post" class="form-horizontal">
                <h4>使用你的账号进行登录</h4>
                <hr/>
                @if (!string.IsNullOrWhiteSpace(ViewBag.ErrorMessage))
                {
                    <p style="color: red">@ViewBag.ErrorMessage</p>
                }
                <div class="form-group">
                    <label class="col-md-2 control-label">用户名</label>
                    <div class="col-md-10">
                        <input name="userName" class="form-control"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">密码</label>
                    <div class="col-md-10">
                        <input name="password" type="password" class="form-control"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <button type="submit" class="btn btn-default">登录</button>
                    </div>
                </div>
            </form>
        </section>
    </div>
</div>